package com.reform.mapper;

import com.reform.pojo.phase.PhaseCheck;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 阶段检查项目表 Mapper 接口
 * </p>
 *
 * @author mortale
 * @since 2021-10-11
 */
@Mapper
public interface PhaseCheckMapper extends BaseMapper<PhaseCheck> {

    @Update(
            "UPDATE `reform`.`phase_check` SET `pc_status` = 1 WHERE `pro_id` = #{proId} and `pt_id` = #{phaseId}"
    )
    void updatePhaseStatus(@Param("proId") String proId, @Param("phaseId")String phaseId);
}
